package org.example.service;

import org.example.domain.dto.ShoppingCartInfo;
import org.example.domain.dto.ShoppingCartNumInfo;
import org.example.domain.entity.ShoppingCart;
import org.example.domain.model.ShoppingCartAllInfo;

import java.util.List;

public interface IShoppingCartAllInfoService {

    public List<ShoppingCartAllInfo> selectAllShoppingCart(String userName);

    public ShoppingCartAllInfo selectOneShoppingCart(Integer id);

    List<ShoppingCartAllInfo> selectAllShoppingCartToShoppingId(String shoppingId);
    ShoppingCart selectOne(Integer id);

    public int insertShoppingCart(ShoppingCartInfo shoppingCartInfo);

    public int addShoppingCartNum(Integer shoppingCartId);

    public int minusShoppingCartNum(Integer shoppingCartId);

    public int assignShoppingCartNum(ShoppingCartNumInfo shoppingCartNumInfo);

    public int deleteShoppingCart(Integer shoppingCartId);

    public int deleteCheckedShoppingCart(String checkedShoppingCartId);

    public int countShoppingCart(String userName);
}
